package org.destiny;

import java.io.Serializable;

import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class StudentDTO implements Serializable {

    private static final long serialVersionUID = 6842405828113467402L;

    @NotBlank
    @Length(max = 50, min = 2)
    private String userName;

    @Min(value = 1)
    private Integer userAge;

    private String school;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

}
